package com.example.healthsystem.service;

import com.example.healthsystem.entity.healthreg;

import java.sql.Timestamp;
import java.util.List;

public interface HealthregService {
    // --- 登记当前信息 ----
    void insertHealth(healthreg healthreg);
    // --- delete health register infomation ---
    void deleteReginfo(String name);
    // --- update health register ---
    void changeReginfo(String name,healthreg healthreg);
    // === search info ===
    // --- 查询个人历史登记信息 ---
    List<healthreg> searchHealthPer(String name,int pageNum,int pageSize);
    // ---- search all health register info --- ==>admin
    List<healthreg> searchHealth(int pageNum,int pageSize);
    // --- search health infomation base on regtime
    healthreg searchHealthDate(String name, Timestamp time);
}
